package com.project.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

    @Entity
    @Data
    @Table(name = "content_r")
    public class ContentREntity {
        @Id
        @Column(length = 100)
        private String contentId;//内容Id，用雪花算法，会自动创建索引
        @Column(length = 48)
        private String title;//标题
        @Column(length = 48)
        private Integer type;//类型
    }